for i in range(1,10):
    for s in range(1,i+1):
        h = i * s
        print('{}*{} = {}'.format(i,s,h),end=' ')
    print()